import { Inject, Injectable, Scope } from '@nestjs/common'
import { Request } from 'express'
import { REQUEST } from '@nestjs/core'

@Injectable({ scope: Scope.REQUEST })
export class JstService {

  constructor(
    @Inject(REQUEST)
    private readonly request: Request
  ) { }

  get jwt() {
    return this.request.jwt
  }

}
